package java知识点.运算符;

public class there_eyes{
    public static void main (String[] args){
        //三目运算符
        //格式:(条件或逻辑表示式)?(表示式一):(表达式二)

        int num1 = 10;
        int num2 = 20;

        int ret = num1 > num2 ? num1 : num2;

        System.out.println(ret);
        }
}
